//index.js
//获取应用实例
const app = getApp()

Page({
  options: {
    addGlobalClass: true,
  },
  data: {
    imgUrls: [ 
      'http://img95.699pic.com/photo/40007/8547.jpg_wh300.jpg',
      'http://img95.699pic.com/photo/40007/7669.jpg_wh300.jpg'
      ],
    indicatorDots: false,//关闭面板指示点
    autoplay: true,//自动切换
    interval: 5000,//自动切换时间间隔
    duration: 500, //滑动动画时长
    
    elements: [
      { title: '寄快递', url: 'send', name: '上门取件', color: 'red', icon: 'kuaidi2' },
      { title: '同城急送', url: '', name: '一小时送达', color: 'orange', icon: 'kuaidi' },
      { title: '跨城捎送', url: '', name: '方便快捷', color: 'pink', icon: 'kuaidi1' },
      { title: '扫码寄件', url: '', name: '运单二维码', color: 'brown', icon: 'saoma' },
      { title: '寄大件', url: '', name: '方便快捷', color: 'yellow', icon: '-luggage-cart' },
      { title: '常见问题', url: '', name: '解决疑问', color: 'olive', icon: 'changjianwenti' },
    ],
  },
  
  //banner图调整页面
  imgUrl: function () {
    wx.navigateTo({
      url: '../map/map'
    })
  },
  methods: {
    //跳转登陆页面
    navback: function () {
      wx.navigateTo({
        url: '../logs/logs'
      })
    }
  },

})
